﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace DreamSpace.Server
{
    /// <summary>
    /// The bridge class is used to communicate to the host application from within JavaScript.
    /// </summary>
    public partial class ServerHostBridge : HostBridge
    {
        bool? _IsStudio;

        public override bool isStudio() { return _IsStudio ?? (_IsStudio = (from a in AppDomain.CurrentDomain.GetAssemblies() where a.FullName.Contains("DreamSpace") && a.FullName.Contains("Studio") select a).Count() > 0).Value; }
        public override bool isServer() { return true; }
        public override bool isClient() { return false; }
    }
}
